package com.xiaoyu.im.datamodel.messagesync;

import androidx.annotation.IntDef;

import com.xiaoyu.im.datamodel.AppMessage;

import java.util.List;

public class MessageFetchResult {

    public static final int COMPLETE = 1;
    public static final int HAS_MORE = 2;

    @IntDef({COMPLETE, HAS_MORE})
    public @interface FetchStatus {
    }

    public final int status;
    public final long lastFromTime;
    public final List<AppMessage> messages;

    public MessageFetchResult(final int status, final long lastFromTime, final List<AppMessage> messages) {
        this.status = status;
        this.lastFromTime = lastFromTime;
        this.messages = messages;
    }
}
